#ifndef _SOCKET
#define _SOCKET

#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <strings.h>
#include <iostream>

using namespace std;

#define MAX_SIZE_RECIEVE 1024

class Socket
{
  int ref_socket;
  struct sockaddr_in socket_server_info,socket_com_info;
public:
  Socket();
  Socket(const char* ip_server,unsigned int port_server,unsigned int port_communication);
  void send_data(string data);
  string recieve_data();
  void close_socket();
};

#endif
